package com.gopay.common.cps.dao.cbrmb.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.cbrmb.CbRmbBatchRemitAssistDAO;
import com.gopay.common.domain.cbrmb.remit.CbRmbBatchRemitAssist;
import com.gopay.common.domain.cps.CpsGenMainOrder;

/**
 * 跨境人民币 汇款拆分辅助表DAO实现类
 * 
 * @CbRmbBatchRemitAssistDAOImpl.java
 * @author lailingyu
 * @2017-4-28 上午9:53:05 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository(value = "cbRmbBatchRemitAssistDAO")
public class CbRmbBatchRemitAssistDAOImpl extends BaseDAOImpl<CbRmbBatchRemitAssist, String>
		implements CbRmbBatchRemitAssistDAO {

    @Override
    public CbRmbBatchRemitAssist getByOrderId(String orderId) {
        // TODO Auto-generated method stub
        
        String hql = " from CbRmbBatchRemitAssist t where t.gopayOrderId =:orderId";
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("orderId", orderId);
        List<CbRmbBatchRemitAssist> ss = findByHql(hql, map);
        return (null == ss || 0 == ss.size()) ? null : ss.get(0);
    }

    
    
    
    
    
    
}
